package com.ctg.itrdc.sysmgr.portal.api.dto;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Id;

import org.hibernate.validator.constraints.NotBlank;

import com.ctg.itrdc.pasp.core.DTO;


public class SystemRolesDTO extends BaseDTO implements Serializable {
	private static final long serialVersionUID = 1598179584838497003L;

	
	private Long sysUserRoleId;
	public Long getSysUserRoleId() {
		return sysUserRoleId;
	}
	public void setSysUserRoleId(Long sysUserRoleId) {
		this.sysUserRoleId = sysUserRoleId;
	}

	private Long sysPostRoleId;
	public Long getSysPostRoleId() {
		return sysPostRoleId;
	}
	public void setSysPostRoleId(Long sysPostRoleId) {
		this.sysPostRoleId = sysPostRoleId;
	}

	private CommonRegionDTO commonRegion;
	
	public CommonRegionDTO getCommonRegion() {
		return commonRegion;
	}

	public void setCommonRegion(CommonRegionDTO commonRegion) {
		this.commonRegion = commonRegion;
	}
	
	private PlatInfoDTO platInfo;

	public PlatInfoDTO getPlatInfo() {
		return platInfo;
	}

	public void setPlatInfo(PlatInfoDTO platInfo) {
		this.platInfo = platInfo;
	}
	
	/**
	 * 角色标识
	 */
	@Id
	private Long sysRoleId;

	/**
	 * 是否系统初始数据
	 */
	private Short initFlag;

	/**
	 * 创建人
	 */
	private Long createStaff;

	/**
	 * 修改时间
	 */
	private Timestamp updateDate;

	/**
	 * 状态时间
	 */
	private Timestamp statusDate;

	/**
	 * 租户标识。
	 */
	private Long tenantId;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	private Long commonRegionId;

	/**
	 * 角色描述
	 */
	private String sysRoleDesc;

	/**
	 * 角色名称
	 */
	@NotBlank
	private String sysRoleName;

	/**
	 * 角色类型,LOVB
	 */
	private String sysRoleType;

	/**
	 * 分片键1，固定值-1。
	 */
	private Long shard1;

	/**
	 * 修改人
	 */
	private Long updateStaff;

	/**
	 * 分片键2，固定值-1。
	 */
	private Long shard2;

	/**
	 * 系统用户的归属系统
	 */
	private String sysCode;

	/**
	 * 状态
	 */
	@NotBlank
	private String statusCd;

	/**
	 * 角色编码
	 */
//	@NotBlank
	private String sysRoleCode;

	/**
	 * 创建时间
	 */
	private Timestamp createDate;


	public void setSysRoleId(Long sysRoleId){
		this.sysRoleId = sysRoleId;
	}

	public Long getSysRoleId(){
		return this.sysRoleId;
	}

	public void setInitFlag(Short initFlag){
		this.initFlag = initFlag;
	}

	public Short getInitFlag(){
		return this.initFlag;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setSysRoleDesc(String sysRoleDesc){
		this.sysRoleDesc = sysRoleDesc;
	}

	public String getSysRoleDesc(){
		return this.sysRoleDesc;
	}

	public void setSysRoleName(String sysRoleName){
		this.sysRoleName = sysRoleName;
	}

	public String getSysRoleName(){
		return this.sysRoleName;
	}

	public void setSysRoleType(String sysRoleType){
		this.sysRoleType = sysRoleType;
	}

	public String getSysRoleType(){
		return this.sysRoleType;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setSysCode(String sysCode){
		this.sysCode = sysCode;
	}

	public String getSysCode(){
		return this.sysCode;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setSysRoleCode(String sysRoleCode){
		this.sysRoleCode = sysRoleCode;
	}

	public String getSysRoleCode(){
		return this.sysRoleCode;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	public Long getId() {
		return sysRoleId;
	}
	
	public void setId(Long id) {
		this.sysRoleId = id;
	}
    
	public SystemRolesDTO() {
		super();
    }
}
